package com.z.common.gen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.z.common.gen.entity.SysDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 数据字典Mapper接口
 *
 * @author z
 * @date 2022-09-21
 */
@Mapper
public interface SysDictMapper extends BaseMapper<SysDict> {
    /**
     * 查询数据字典列表
     *
     * @param sysDict 数据字典
     * @return 数据字典集合
     */
    List<SysDict> selectSysDictList(SysDict sysDict);

    @Select("SELECT type_code,type_name from sys_dict")
    List<SysDict> selectDictCode();
}
